﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DBMigrator.Core.Tests
{
    public class StringUtil
    {
        public static string Random()
        {
            return Random(10);
        }

        public static string Random(int length)
        {
            var builder = new StringBuilder();
            var random = new Random();

            for(int i = 0; i<length; i++)
            {
                builder.Append(Convert.ToChar(Convert.ToInt32(Math.Floor(26*random.NextDouble() + 65))));
            }

            return builder.ToString();
        }
    }
}
